package org.csu.mypetstore.service;

import org.csu.mypetstore.persistence.ServiceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ServiceService {
    @Autowired
    ServiceMapper serviceMapper;

    public List<org.csu.mypetstore.domain.Service> getServiceList (){return serviceMapper.getServiceList();}
    public void newService(org.csu.mypetstore.domain.Service service){serviceMapper.newService(service);}
    public void deleteService(String serviceId){serviceMapper.deleteService(serviceId);}
    public void updateService(org.csu.mypetstore.domain.Service service){serviceMapper.updateService(service);}
    public void updateServiceNoPassword(org.csu.mypetstore.domain.Service service){serviceMapper.updateServiceNoPassword(service);}
    public org.csu.mypetstore.domain.Service getServiceById (String id){return serviceMapper.getServiceById(id);}
    public org.csu.mypetstore.domain.Service getServiceByIdAndPsw(String id,String password){return serviceMapper.getServiceByIdAndPsw(id,password);}
}
